<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Browser-use Demo</title>
  <style>
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      max-width: 800px;
      margin: 0 auto;
      padding: 20px;
    }
    .demo-section {
      margin-bottom: 20px;
      padding: 15px;
      border: 1px solid #ddd;
      border-radius: 4px;
    }
    button {
      padding: 8px 16px;
      margin: 5px;
      border: none;
      border-radius: 4px;
      background-color: #4CAF50;
      color: white;
      cursor: pointer;
    }
    button:hover {
      background-color: #45a049;
    }
    #output {
      margin-top: 10px;
      padding: 10px;
      background-color: #f5f5f5;
      border-radius: 4px;
    }
  </style>
</head>
<body>
  <h1>Browser-use 功能演示</h1>
  
  <div class="demo-section">
    <h2>基本浏览器信息</h2>
    <div id="browser-info"></div>
  </div>

  <div class="demo-section">
    <h2>剪贴板操作</h2>
    <button id="copy-btn">复制文本到剪贴板</button>
    <button id="paste-btn">从剪贴板粘贴</button>
    <div id="clipboard-output"></div>
  </div>

  <div class="demo-section">
    <h2>网络状态监控</h2>
    <div id="network-status"></div>
  </div>

  <div class="demo-section">
    <h2>电池状态</h2>
    <div id="battery-status"></div>
  </div>

  <script type="module" src="./main.js"></script>
</body>
</html>